package day04;

import java.util.Scanner;

public class UserTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入用户名:");
        String userName = scanner.next();
        System.out.println("请输入密码:");
        String password = scanner.next();

        User user = new User("yyu","gkh");
//        user.operation( userName,password );

        user.setUserName("admin");
        user.setPassword("123456");


        boolean rest = user.operation(userName ,password);
        if (rest){
            System.out.println("登录成功，欢迎！"+userName);
        }else {
            System.out.println("登录失败，用户名或密码错误");
        }


    }
}
